package cn.com.surker.base.pump.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 泵送类型站点表
 * </p>
 *
 * @author admin
 * @since 2024-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_pump_type_org")
public class PumpTypeOrg implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 标识
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 关联站点
	 */
	private Long orgId;

	/**
	 * erpid
	 */
	private Long erpId;

	/**
	 * 泵送类型
	 */
	private Long typeId;

	/**
	 * 状态(0:启用1：禁用)
	 */
	private Integer status;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 创建人
	 */
	private String creator;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	/**
	 * 修改人
	 */
	private String updator;

	/**
	 * 修改时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;
	public PumpTypeOrg(){}
	public PumpTypeOrg(Long orgId, Long erpId, Long typeId, Integer status, String remark, String creator, Date createTime) {
		this.orgId = orgId;
		this.erpId = erpId;
		this.typeId = typeId;
		this.status = status;
		this.remark = remark;
		this.creator = creator;
		this.createTime = createTime;
	}
}
